<!DOCTYPE html>
<html lang="zh" data-theme="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mimi 秘密 - 控制面板</title>
    <script>
        // 预加载主题设置
        (function() {
            const savedTheme = localStorage.getItem('theme') || 'dark';
            document.documentElement.setAttribute('data-theme', savedTheme);
        })();
    </script>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/theme.css">
    <link rel="stylesheet" href="css/dashboard.css">
</head>
<body>
    <div class="dashboard-container">
        <header class="cyber-header">
            <div class="header-left">
                <div class="logo">MIMI SECURE SYSTEM</div>
                <div class="user-info">
                    <span id="userEmail"></span>
                    <div class="bio-auth-status">
                        <span class="status-dot"></span>
                        <span id="bioAuthStatus">生物认证未绑定</span>
                    </div>
                </div>
            </div>
            <div class="header-right">
                <button id="themeToggle" class="theme-toggle">
                    <span class="icon">🌓</span>
                    <span>主题</span>
                </button>
                <button id="logoutBtn" class="cyber-button">
                    <span class="button-text">退出登录</span>
                </button>
            </div>
        </header>

        <main class="dashboard-content">
            <div class="feature-grid">
                <!-- 密码管理入口 -->
                <div class="feature-card" id="passwordManager">
                    <div class="card-icon">🔑</div>
                    <h3>密码管理</h3>
                    <p>安全存储和管理您的密码</p>
                    <div class="card-stats">
                        <span id="passwordCount">0</span>
                        <span>个密码</span>
                    </div>
                </div>

                <!-- 记事本入口 -->
                <div class="feature-card" id="notepad">
                    <div class="card-icon">📝</div>
                    <h3>加密记事本</h3>
                    <p>安全记录您的私密笔记</p>
                    <div class="card-stats">
                        <span id="noteCount">0</span>
                        <span>条笔记</span>
                    </div>
                </div>

                <!-- 生物认证设置 -->
                <div class="feature-card" id="bioAuth">
                    <div class="card-icon">👆</div>
                    <h3>生物认证</h3>
                    <p>设置生物识别登录</p>
                    <div class="auth-toggle">
                        <button id="toggleBioAuth" class="cyber-button">
                            <span class="button-text">绑定认证</span>
                        </button>
                    </div>
                </div>

                <!-- 安全设置 -->
                <div class="feature-card" id="security">
                    <div class="card-icon">🛡️</div>
                    <h3>安全设置</h3>
                    <p>管理您的安全选项</p>
                    <div class="security-status">
                        <span class="status-dot active"></span>
                        <span>端到端加密</span>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script type="module" src="js/dashboard.js"></script>
</body>
</html> 